﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace MVC_Person.Models
{
    public class Person
    {
        public int PersonID { get; set; }
        public string Contact_role { get; set; }
        public int CompanyID { get; set; }
        public string Job_title { get; set; }
        public DateTime Job_start { get; set; }
        public DateTime Job_end { get; set; }
        public string Comments { get; set; }
        public string Email { get; set; }
        public int Cell_phone { get; set; }
        public int Office_fax { get; set; }
        public int Office_phone { get; set; }
        public string Prefix { get; set; }
        public string First_name { get; set; }
        public string Last_name { get; set; }
        public string Suffix { get; set; }
    }

    public class PersonDBContext : DbContext
    {
        public DbSet<Person> People { get; set; }
    }
}